// import 'package:fl_baidu_mob_stat_ys/fl_baidu_mob_stat_ys.dart';
import 'package:get/get.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:ball_lion/utils/sp_utils.dart';
import 'package:ball_lion/server/http/request_header.dart';
import 'package:ball_lion/utils/app_config.dart';
import 'package:ball_lion/utils/constant.dart';

class BaiduService extends GetxService {
  Future<BaiduService> init() async {
    return this;
  }

  // Future initBd() async {
  //   String channel = 'Baidu';
  //   if (!AppConfig.config.isDebug) {
  //     channel = RequestHeader.channel;
  //   }
  //   await PackageInfo.fromPlatform().then((value) {
  //     var pinfo = value;
  //     FlBaiduMobStatYs()
  //       ..setApiKey(androidKey: Constant.bdAndroidKey, iosKey: '')
  //       ..setAppChannel(channel)
  //       ..setAppVersionName(pinfo.version)
  //       ..setDebug(AppConfig.config.isDebug);
  //   });
  // }
}
